<?php
namespace app\web\api;
use app\src\user\enum\RegFromEnum;
use app\src\user\enum\RoleEnum;
use app\web\helper\WebApiHelper;

/**
 * Created by PhpStorm.
 * User: Gooraye
 * Date: 2017-06-03
 * Time: 13:53
 */
class AccountScoreApi
{


    public static function getAccounts($account_id,$role_type,$page_index,$size,$change_type)
    {
        $data = [
            'api_ver' => '100',
            'uid' => $account_id,
            'page_index' => $page_index,
            'size' => $size,
            'role_type' => $role_type,
            'change_type' => $change_type,
        ];
        return WebApiHelper::callRemote('By_AccountScore_getAccounts', $data);
    }
    public static function getInfo($account_type,$account_id)
    {
        $data = [
            'api_ver' => '100',
            'account_id' => $account_id,
            'account_type' => $account_type
        ];
        return WebApiHelper::callRemote('By_AccountScore_getInfo', $data);
    }
}